package com.mq.autoconfiguration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(
        prefix = "spring.mq.redis"
)
public class RedisMqProperties {

    private int maxConsumer;

    private int retryTimes;

    public int getMaxConsumer() {
        return maxConsumer;
    }

    public void setMaxConsumer(int maxConsumer) {
        this.maxConsumer = maxConsumer;
    }

    public int getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(int retryTimes) {
        this.retryTimes = retryTimes;
    }
}
